package com.dldata.devtools30.entity;

import jakarta.persistence.*;

import java.util.Objects;

@Entity
@Table(name = "devt_zbobj_info")
public class DevtZbobjInfoEntity {
    private String id;
    private String zbobjname;
    private String zbobjcode;
    private String zbobjdatasql;
    
    @Basic
    @Column(name = "zbobjdatasql", nullable = true, length = 256)
    public String getZbobjdatasql() {
        return zbobjdatasql;
    }
    
    public void setZbobjdatasql(String zbobjdatasql) {
        this.zbobjdatasql = zbobjdatasql;
    }
    
    @Id
    @Column(name = "ID", nullable = false, length = 64)
    public String getId() {
        return id;
    }
    
    public void setId(String id) {
        this.id = id;
    }
    
    @Basic
    @Column(name = "zbobjname", nullable = true, length = 256)
    public String getZbobjname() {
        return zbobjname;
    }
    
    public void setZbobjname(String zbobjname) {
        this.zbobjname = zbobjname;
    }
    
    @Basic
    @Column(name = "zbobjcode", nullable = true, length = 256)
    public String getZbobjcode() {
        return zbobjcode;
    }
    
    public void setZbobjcode(String zbobjcode) {
        this.zbobjcode = zbobjcode;
    }
    
    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        DevtZbobjInfoEntity that = (DevtZbobjInfoEntity) o;
        return Objects.equals(id, that.id) && Objects.equals(zbobjname, that.zbobjname) && Objects.equals(zbobjcode, that.zbobjcode);
    }
    
    @Override
    public int hashCode() {
        return Objects.hash(id, zbobjname, zbobjcode);
    }
}
